.\" -*- nroff -*-
.TH pcibios_read_config_word 9 "August 5, 1997" "Linux DDI" "BIOS32 Functions"
.SH NAME
pcibios_read_config_word \- read a word of data from the configuration space
of the PCI bus
.SH SYNOPSIS
.B #include  <linux/bios32.h>
.sp
.BI "int pcibios_read_config_word (unsigned char bus, unsigned char device_fn,\
unsigned char where, unsigned short * value);"
.SH DESCRIPTION
The
.B pcibios_read_config_word
function reads a word from the configuration space of the PCI bus.  The
bus can be specified with the
.B bus
parameters.  The
.B device_fn
paramter determines which ? to use.
.B where
is set to the ?.  After the call is made,
.B value
points to the value that was read.
.SH "RETURN VALUE"
The return value is taken from the PCI controller in a way that I'm
not quite sure of.
.PP
If the PCI system is unavailable, PCIBIOS_FUNC_NOT_SUPPORTED is
returned.
.SH AVAILABILITY
Linux 1.0?
.SH AUTHOR
Kirk Petersen (kirk@speakeasy.org)
.SH BUGS
